package org.microservice.common.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.microservice.common.base.AbstractAuditingEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/7/11
 * Time: 16:00
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Data
@TableName("d_department")
public class DepartmentVo extends AbstractAuditingEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private int id;
    private String name;
    private String code;
    private int parentId;
    private boolean disabled;
    private int orderNum;
    @TableField(exist = false)
    private List<DepartmentVo> children = new ArrayList<>();
    @TableField(exist = false)
    private List<Integer> leaderIds;

    @TableField(exist = false)
    private List leaders = new ArrayList<>();


}
